/*
 * @Description: 权限管理
 * @Author: HuiSir<273250950@qq.com>
 * @Date: 2021-10-15 15:10:44
 * @LastEditTime: 2025-08-14 15:33:13
 */
import { useProjectConfig, rules2MockMethods } from "./_helpers";
import permList from "./_permList";
const project = useProjectConfig();
const Prefix = "/permission/";

// 查询权限树
export const getTree = { [project.responseFields.data]: permList };

// 新增权限
const add = { [project.responseFields.message]: "新增成功" };

// 更新权限
const update = { [project.responseFields.message]: "保存成功" };

// 删除权限
const del = { [project.responseFields.message]: "删除成功" };

const Rules: Record<string, unknown> = {
  getTree,
  add,
  update,
  delete: del,
};

export default rules2MockMethods(Rules, Prefix);
